package info.wangyuan.agent.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * 知识库来源
 *
 * @author Albert
 * @since 2025-07-20 03:04:32
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_knowledge_source", autoResultMap = true)
public class KnowledgeSource implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 智能体ID
     */
    private Integer agentId;

    /**
     * 知识库ID
     */
    private Integer knowledgeBaseId;

    /**
     * 知识库名称
     */
    @TableField(exist = false)
    private String knowledgeBaseName;
}
